package com.xqboss.apps.dto.synthesis;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "合成活动-方案配置-详情", description = "出入参数")
public class SynthesisPlanDetailDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "方案名称")
    @NotEmpty(message = "方案名称不可为空")
    @Length(max = 50, message = "方案名称格式不合法")
    private String name;

    @ApiModelProperty(value = "消耗实体")
    private List<List<SynthesisPlanConsumeDto>> consumes;

    @ApiModelProperty(value = "产出实体")
    private List<SynthesisPlanResultDto> results;
}
